#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
char* My_strcpy(char* arr2, const char* arr1)
{
	assert(arr1&&arr2);
	char* start = arr2;
	while (*arr2++ = *arr1++)
	{
		;
	}
	return start;
}
int main()
{
	char arr1[10] = "hello";
	char arr2[20], arr3[20];
	My_strcpy(arr2, arr1);
	My_strcpy(arr3, "world");
	printf("arr2=%s\n", arr2);
	printf("arr3=%s\n", arr3);
	return 0;
}